package com.example.demo;

import cn.hutool.http.HttpUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
import java.util.Properties;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        //printEnv();
        SpringApplication.run(DemoApplication.class, args);
    }

    /*private static void printEnv() {
        System.out.println(">>>>>>>>>>>>>>>>>>获取环境变量<<<<<<<<<<<<<<<<");
        Map<String, String> envs = System.getenv();
        envs.forEach((k, v) -> {
            System.out.printf("key是: %s; value是: %s%n", k, v);
        });

        System.out.println(">>>>>>>>>>>>>>>>>>获取jvm属性<<<<<<<<<<<<<<<<<<<");
        Properties properties = System.getProperties();
        properties.forEach((k, v) -> {
            System.out.printf("key是: %s; value是: %s%n", k, v);
        });
    }*/
}
